/*
 * @Description: js
 * @Author: rendc
 * @Date: 2021-09-06 11:09:00
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-06 11:10:30
 */
window.onload = function () {
  var myDiv = document.getElementById("myDiv");
  console.log(myDiv.getAttribute("class"));
  console.log(myDiv.getAttribute("id"));
  console.log(myDiv.getAttribute("style"));
  myDiv.removeAttribute("id");
  console.log(myDiv);
  // var myImg = document.getElementsByTagName("img")[0];
  // console.log(myImg.getAttribute("src"));
  // console.log(myImg.getAttribute("alt"));
  // console.log(myImg.getAttribute("style"));
}